from django.urls import path

from user import views

urlpatterns = [
    path('api/login/', views.loginView, name='login'),
    path('api/create/', views.createView, name='create'),
    path('api/usermsg/', views.usermsgView, name='usermsg'),
    path('api/userpost/', views.userpostView, name='userpost'),
    path('api/topic/', views.topicView, name='topic'),
    path('api/user_concern/', views.user_concern_topicView, name='topic'),
    path('api/hotView/',views.hotView, name='hotView'),
    path('api/search/', views.searchView, name='searchView'),
    path('api/topic_details/', views.topic_details, name='topic_details'),
    path('api/delete_usertopic/<int:pk>/', views.delete_usertopic, name='delete_topic'),
    path('api/delete_usercollect/', views.delete_usercollect, name='delete_topic'),
    path('api/vote_up/<int:pk>/', views.vote_up_topic, name='vote_up_topic'),
    path('api/vote_down/<int:pk>/', views.vote_down_topic, name='vote_down_topic'),
    path('api/collect_topic/',views.collect_topic, name='collect_topic'),
    path('api/submit_comment/',views.submit_comment, name='submit_comment'),
    path('api/concern/',views.concern, name='concern'),
    path('api/upload_avatar/',views.upload_avatar, name='upload_avatar'),
    path('api/user_addtopic/',views.user_addtopic, name='user_addtopic'),
    path('api/getotherusermsg/',views.getotherusermsg, name='getotherusermsg'),
    path('api/canclelike/',views.confirm_delete_usertopic, name='confirm_delete_usertopic'),

]
